package com.xiaodou.mjf.application.user.service.impl;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import com.xiaodou.mjf.application.user.repository.MemberSecurityRepository;
import com.xiaodou.mjf.application.user.service.MemberSecurityService;
import com.xiaodou.mjf.entity.user.MemberSecurity;
import com.xiaodou.mjf.infrastructure.common.app.JpaSimpleService;


/***
 *
 * MemberSecurity业务访问实现
 * @author XiaoDou.com Code Generator
 * @version 1.0
 * 2014-10-29 17:37:52
 *
 */
@Service @Transactional
public class MemberSecurityServiceImpl extends JpaSimpleService<MemberSecurity,String> implements MemberSecurityService{

	Logger logger = LoggerFactory.getLogger(MemberSecurityServiceImpl.class);

    @Resource
    MemberSecurityRepository memberSecurityRepository;

    @Override
    protected JpaRepository<MemberSecurity, String> getRepository() {
        return memberSecurityRepository;
    }

    public MemberSecurity getUserinfo(String mobile){    	
    	
 		return memberSecurityRepository.getUserInfo(mobile);
     	
     }
    @Override
    public MemberSecurity getMember(String mobile) {

    	return memberSecurityRepository.getMember(mobile);
    }
}

